import http from '@/http'
import { ListXsjhParam, XsjhModel } from './XsjhModel'

export const addUserApi = (param:XsjhModel) => {
    return http.post("/api/xsjh",param)
}

export const getListApi = (param:ListXsjhParam) => {
    return http.get("/api/xsjh/list",param)
}

export const editUserApi = (param:XsjhModel) => {
    return http.put("/api/xsjh",param)
}

export const deleteUserApi = (id:string) => {
    return http.delete(`/api/xsjh/${id}`)
}
